<?php

/* @var $this \yii\web\View */
/* @var $content string */

use backend\assets\AppAsset;
use yii\helpers\Html;
AppAsset::register($this);

// $this->registerCssFile(Yii::$app->params['UIbaseUrl']."/dist/css/AdminLTE.min.css");
// $this->registerJsFile(Yii::$app->params['UIbaseUrl'].'/plugins/fastclick/fastclick.js', ['depends' => [yii\web\JqueryAsset::className()]]);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
  <meta charset="<?= Yii::$app->charset ?>">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <?= Html::csrfMetaTags() ?>
  <title>IrisCMS 管理平台 -  <?= Html::encode($this->title) ?></title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <?php $this->head() ?>

  <!--[if lt IE 9]>
  <script src="<?=Yii::$app->params['FUIbaseUrl']?>/js/html5shiv.min.js"></script>
  <script src="<?=Yii::$app->params['FUIbaseUrl']?>/js/respond.min.js"></script>
  <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini">

  <?php $this->beginBody() ?>
  <div class="wrapper">

    <header class="main-header">
      <a href="?" class="logo">
        <span class="logo-mini"><b>I</b>ris</span>
        <span class="logo-lg"><b>Iris</b>CMS管理平台</span>
      </a>
      <nav class="navbar navbar-static-top" role="navigation">
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
          <span class="sr-only">导航切换</span>
        </a>

        <div class="navbar-custom-menu">
          <ul class="nav navbar-nav">
            <!-- 右上用户资料 -->
            <li class="dropdown user user-menu">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <img src="<?=Yii::$app->user->identity->img ?>" class="user-image" alt="User Image">
                <span class="hidden-xs"><?=Yii::$app->user->identity->username ?></span>
              </a>
              <ul class="dropdown-menu">
                <li class="user-header">
                  <img src="<?=Yii::$app->user->identity->img ?>" class="img-circle" alt="User Image">
                  <p>
                    <?=Yii::$app->user->identity->username ?> - <?=Yii::$app->user->identity->group ?>
                    <small> 注册时间 <?=date('Y-m-d',Yii::$app->user->identity->created_at) ?> </small>
                  </p>
                </li>
                <li class="user-footer">
                  <div class="pull-left">
                    <a href="#" class="btn btn-default btn-flat">资料</a>
                  </div>
                  <div class="pull-right">
                    <a href="?r=site/logout"  class="btn btn-default btn-flat">退出登录</a>
                  </div>
                </li>
              </ul>
            </li>
            <li>
              <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
            </li>
          </ul>
        </div>
      </nav>
    </header>

    <!-- 左列表-->
    <aside class="main-sidebar">
      <section class="sidebar">
        <!-- 左列表用户信息 -->
        <div class="user-panel">
          <div class="pull-left image">
            <img src="<?=Yii::$app->user->identity->img ?>" class="img-circle" alt="User Image">
          </div>
          <div class="pull-left info">
            <p><?=Yii::$app->user->identity->username ?></p>
            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
          </div>
        </div>
        <!-- 整站搜索区 -->
      <!-- <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form> -->
      <!-- 主导航-->
      <ul class="sidebar-menu">
        <li class="header">管理平台导航区</li>

        <li class="active treeview">
          <a href="?r=user">
            <i class="fa fa-group"></i> <span>用户和用户组</span> <i class="fa fa-angle-left pull-right"></i>
          </a>
          <ul class="treeview-menu">
            <li class="active"><a href="?r=user"><i class="fa fa-circle-o"></i> 用户列表</a></li>
            <li><a href="?r=user/group"><i class="fa fa-circle-o"></i> 用户组</a></li>
            <li><a href="?r=user/setting"><i class="fa fa-circle-o"></i> 组权限配置</a></li>
          </ul>

          <li>
            <a href="?r=model">
              <i class="fa fa-th"></i> <span>模型</span>
              <small class="label pull-right bg-green">new</small>
            </a>
          </li>

        </li>

      </ul>
    </section>
  </aside>

  <!-- 主内容区-->
  <div class="content-wrapper">
    <!-- 页顶头-->
    <section class="content-header">
      <h1><?=$this->title ?> <small> </small> </h1>
      <ol class="breadcrumb">
        <li><a href="?"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li class="active"><?=$this->title ?></li>
      </ol>
    </section>
    <section class="content">
      <?= $content ?>
    </section>

  </div>

  <!-- 尾部区 -->
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>IrisCMS </b> /  <b> Yii Framework</b>  /  <b>AdminLTE</b>
    </div>
    <strong>Copyright &copy; HangyuTech.com  <?= date('Y') ?> .</strong> All rights    reserved.
  </footer>




  <!--  后台自定义界面 Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">Recent Activity</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript::;">
              <i class="menu-icon fa fa-birthday-cake bg-red"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                <p>Will be 23 on April 24th</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <i class="menu-icon fa fa-user bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>

                <p>New phone +1(800)555-1234</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>

                <p>nora@example.com</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <i class="menu-icon fa fa-file-code-o bg-green"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>

                <p>Execution time 5 seconds</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

        <h3 class="control-sidebar-heading">Tasks Progress</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript::;">
              <h4 class="control-sidebar-subheading">
                Custom Template Design
                <span class="label label-danger pull-right">70%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <h4 class="control-sidebar-subheading">
                Update Resume
                <span class="label label-success pull-right">95%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-success" style="width: 95%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <h4 class="control-sidebar-subheading">
                Laravel Integration
                <span class="label label-warning pull-right">50%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript::;">
              <h4 class="control-sidebar-subheading">
                Back End Framework
                <span class="label label-primary pull-right">68%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        <form method="post">
          <h3 class="control-sidebar-heading">General Settings</h3>

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Report panel usage
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Some information about this general settings option
            </p>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Allow mail redirect
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Other sets of options are available
            </p>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Expose author name in posts
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Allow the user to show his name in blog posts
            </p>
          </div>
          <!-- /.form-group -->

          <h3 class="control-sidebar-heading">Chat Settings</h3>

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Show me as online
              <input type="checkbox" class="pull-right" checked>
            </label>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Turn off notifications
              <input type="checkbox" class="pull-right">
            </label>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Delete chat history
              <a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
            </label>
          </div>
          <!-- /.form-group -->
        </form>
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
  immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<?php  $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
